package com.john.bms.model.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.john.bms.model.system.user.SysUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserVo extends SysUser {

    private String roleName;

    private Integer gender;

    private String phone;

    private String email;

    private Integer address;

    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dateBirth;


}
